<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>vue学习</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1 class="title">v-pre&v-cloak&v-once</h1>
    <hr>
    <div id="app">
       <div v-pre>{{message}}</div> 
       <div v-cloak>在渲染完整个DOM后，才显示</div>
       <div v-once>{{message}}----只渲染一次</div>
       <p>
           <input type="text" v-model="message">
           <div>{{message}}</div>
       </p>

    </div>

        <script type="text/javascript">
            var app = new Vue({
                el:'#app',
                data:{
                    message:'Hello World!'
                }
            })
        </script>
        <style>
            .title{
                color: blue;
                font-size:200%;
                text-align: center;
            }
        </style>
</body>
</html>